#ifndef _CARSTOP_H
#define _CARSTOP_H

#include "LinkStack.h"
#include "LinkQueue.h"
#include <string>
#include <ctime>

struct Car
{
    Car(const std::string& Name):Name(Name),arriveTime(0),leaveTime(0){}
    std::string Name;//车牌号
    time_t arriveTime; //到达时间
    time_t leaveTime;//离开时间
};

class CarStop //停车场
{

    
public:
    CarStop(int size):size(size){}
    void ComeCar();
    void LeaveCar();
    void show();
    ~CarStop();

private:
    LinkStack stop;//停车场
    LinkQueue pavement;//便道
    const int size;//停车位数量

};





#endif